<?php
/*
Template Name: Case Study Template
*/
?>

<?php get_header(); ?>

		<div id="main">
			<div id="content" role="main" class="casestudy-template">
				<?php the_post(); ?>
				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<h1 class="entry-title"><?php the_title(); ?></h1>
					<div class="entry-content">
						<?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'TecBridge' )  ); ?>
						<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'TecBridge' ) . '</span>', 'after' => '</div>' ) ); ?>
					</div><!-- .entry-content -->
					<div class="entry-utility">
						<?php edit_post_link( __( 'Edit', 'TecBridge' ), '<span class="edit-link">', '</span>' ) ?>
					</div><!-- #entry-utility -->
				</article>

				
    			<?php global $paged; ?>
				<?php query_posts(array('post_type'=>'casestudy', 'paged' =>  $paged, 'posts_per_page' => 10)); ?>
				<?php content_nav('nav-above', 'case studies'); ?>
				<div id="casestudy" class="row-section no_addthis">
					<?php while (have_posts()) : the_post(); ?>
						<?php get_template_part( 'content', 'casestudy' ); ?>
					<?php endwhile; ?>
				</div>
				<?php content_nav('nav-below', 'case studies'); ?>
			</div>
		</div>	
	
<?php get_footer(); ?>